//
//  FBFindorderModel.h
//  XTXOneToOne
//
//  Created by Canny on 2018/11/6.
//  Copyright © 2018年 WK. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSUInteger, FBFindorderActionType) {
    
    FBFindorderActionType_GoToChat,
    FBFindorderActionType_CancelOrder,
    FBFindorderActionType_GoToPay,
    FBFindorderActionType_LookQRcode,
    FBFindorderActionType_DidPay,
    FBFindorderActionType_AgreedAgreement,
    FBFindorderActionType_ShenSu,
    FBFindorderActionType_FangBi,
    FBFindorderActionType_GoToMoney
    
};

typedef NS_ENUM(NSUInteger, FBPayOrderVCOrderStatusType) {
    
    FBPayOrderVCOrderStatusType_Status_0,//待付款
    FBPayOrderVCOrderStatusType_Status_1,//已付款（未释放代币）
    FBPayOrderVCOrderStatusType_Status_2,//已释放代币
    FBPayOrderVCOrderStatusType_Status_3,//已完成
    FBPayOrderVCOrderStatusType_Status_4 //已取消

};

typedef NS_ENUM(NSUInteger, FBPayType) {
    FBPayType_NOSelected,  //没有选择
    FBPayType_ALiPay,//支付宝
    FBPayType_Wechat,//微信
    FBPayType_YHK//银行卡
    
};

typedef void(^FBOrderViewStatus_Block)(FBFindorderActionType Type);


@interface FBFindorderPaymentModel : NSObject
@property (nonatomic,strong)NSString *ID ;// //  收款方式id

@property (nonatomic,strong)NSString *pay_type    ;//收款方式    @1：银行卡；@2：支付宝；@3：微信
@property (nonatomic,strong)NSArray *account    ;//   账户

//@property (nonatomic,strong)NSString *account": {
//    "account": "HE1969788109",
//    "qrcode_url": "2111212121221",
//    "name": "贺阳飞"



@end

@interface FBFindorderModel : NSObject

@property (nonatomic,strong)NSString *bill_nickname;
@property (nonatomic,strong)NSString *ID ;// 订单id
@property (nonatomic,strong)NSString *bill_sn    ;// 广告号
@property (nonatomic,strong)NSString *order_sn    ;//订单号
@property (nonatomic,strong)NSString *order_type ;// 订单类型    @1:买；@2：卖
@property (nonatomic,strong)NSString *symbol    ;// 代币缩写
@property (nonatomic,strong)NSString *price    ;//单价
@property (nonatomic,strong)NSString *volume    ;//数量
@property (nonatomic,strong)NSString *amount    ;//总价
@property (nonatomic,strong)NSString *trade_fee    ;//手续费
@property (nonatomic,strong)NSString *status   ;//订单状态    订单状态，@0：待付款；@1：已付款（未释放代币）；@2：已释放代币；@3：申诉中；@4：已取消
@property (nonatomic,strong)NSString *create_time    ;//
@property (nonatomic,strong)NSString *legal    ;//  法币缩写
@property (nonatomic,strong)NSString *nickname    ;// 广告发布者昵称
@property (nonatomic,strong)NSArray *payment    ;// 收款信息
@property (nonatomic,strong)NSString *account    ;//  账户信息
@property (nonatomic,strong)NSString *qrcode_url    ;//  二维码地址
@property (nonatomic,strong)NSString *name    ;//    收款人
@property (nonatomic,strong)NSString *modify_time;
@property (nonatomic,strong)NSString *user_id;
@property (nonatomic,strong)NSString *time    ;//
@property (nonatomic,strong)NSString *over_time;
@property (nonatomic,strong)NSString *bill_user_id;
@property (nonatomic,strong)NSDictionary * WechatPay;
@property (nonatomic,strong)NSDictionary * ALiPay;
@property (nonatomic,strong)NSDictionary * BankCard;
//{
//    account =     {
//        branch = "支行";
//        "card_number" = 661261616216166126;
//        "create_address" = "中国银行";
//        name = "谢谢";
//    };
//    id = 89;
//    "paytype_id" = 15;
//    symbol = "\U94f6\U884c\U5361";
//}
@property (nonatomic,strong)NSDictionary * payment_info;



@end

@interface FBFindorderTool : NSObject

+(FBPayOrderVCOrderStatusType)GetTypeWithSatus:(NSInteger)status;
+(NSString *)GetStatusName:(NSString *)status andPayType:(NSString *)pay_type;

+(BOOL)GetBugStatusWithModel:(FBFindorderModel *)model;

@end

@interface FBFindorderUnReadOrder :NSObject
singleton_h(FBFindorderUnReadOrder)

@property (nonatomic,strong)NSDictionary * UnReadOrderDic;


@end

NS_ASSUME_NONNULL_END



/*
WechatPay =     {
    account =         {
        account = 18700965906;
        name = "\U5434\U6960\U6960";
        "qrcode_url" = "https://3iex-payment-image-test.oss-cn-beijing.aliyuncs.com/upload/20181013/3xJjbP_1539426826540.jpg";
    };
    id = 57;
    "paytype_id" = 5;
    symbol = "\U5fae\U4fe1\U652f\U4ed8";
};



 
 */
